<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page isELIgnored="false" %>

<div class="pagination-area">
    <nav aria-label="Page navigation example">
        <ul class="pagination justify-content-center">
            <c:forEach begin="1" end="${page.totalPage}" var="i" step="1">
                <li class="page-item <c:if test="${page.pageNumber == i}"> active</c:if>">
                    <a class="page-link" href="/${param.url}/${param.param}/${i}">${i}</a>
                </li>
            </c:forEach>
            <li class="page-item">
                <a class="page-link" aria-label="下一页"
                   <c:if test="${page.totalPage==0 || page.pageNumber==page.totalPage}">disabled</c:if>
                   <c:if test="${page.pageNumber!=page.totalPage}">href="/${param.url}/${param.param}/${page.pageNumber+1}"</c:if>
                >»</a>
            </li>
        </ul>
    </nav>
</div>


